﻿<UserControl x:Class="Menafrinet.View.Controls.HomePanel"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:vm="clr-namespace:Menafrinet.ViewModel;assembly=Menafrinet.ViewModel"
             xmlns:view="clr-namespace:Menafrinet.View"
             xmlns:controls="clr-namespace:Menafrinet.View.Controls"
             xmlns:p="clr-namespace:Menafrinet.View.Properties"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <DockPanel>
        <DockPanel.Resources>
            <SolidColorBrush x:Key="textLightGray" Color="#FFADADAD"></SolidColorBrush>
            <SolidColorBrush x:Key="textMediumGray" Color="#FF727272"></SolidColorBrush>
            <SolidColorBrush x:Key="textDarkGray" Color="#FF4E4E4E"></SolidColorBrush>
            <SolidColorBrush x:Key="lineDefault" Color="Gray"></SolidColorBrush>
        </DockPanel.Resources>

        <Grid x:Name="grdHome" VerticalAlignment="Stretch" Height="Auto">
            <Grid.RowDefinitions>
                <RowDefinition Height="*"></RowDefinition>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="*"></ColumnDefinition>
            </Grid.ColumnDefinitions>
            <!--<WebBrowser Grid.Row="1" x:Name="browser"></WebBrowser>-->

            <Image x:Name="imageMainPanel" Grid.Row="1" Width="598" Height="454" Margin="20,0,20,0" Source="{Binding Source={x:Static p:Settings.Default}, Path=MapImagePath, Mode=OneWay}" />

            <Button x:Name="btnJobAid1" Style="{StaticResource FlatButtonStyle}" Content="{Binding Source={x:Static p:Settings.Default}, Path=JobAid1ButtonText, Mode=OneWay}" Margin="20, 0, 0, 60" VerticalAlignment="Bottom" HorizontalAlignment="Left" Width="220" Visibility="{Binding Source={x:Static p:Settings.Default}, Path=JobAid1Visibility, Mode=OneWay}" Click="btnJobAid1_Click" >
            </Button>

            <Button x:Name="btnJobAid2" Style="{StaticResource FlatButtonStyle}" Content="{Binding Source={x:Static p:Settings.Default}, Path=JobAid2ButtonText, Mode=OneWay}" Margin="20, 0, 0, 20" VerticalAlignment="Bottom" HorizontalAlignment="Left" Width="220" Visibility="{Binding Source={x:Static p:Settings.Default}, Path=JobAid2Visibility, Mode=OneWay}" Click="btnJobAid2_Click">
            </Button>
        </Grid>
    </DockPanel>
</UserControl>
